<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script language="javascript" >
var ws = new WebSocket('ws://192.168.0.97:8080/TesteWebSocket/teste');

ws.onopen = function() {
  console.log('Conexão aberta com sucesso');
};
 
ws.onmessage = function(message) {
  /* var slide = document.getElementById(message);
  mostrarSlide(slide); */
  alert(message.data);
};
</script>
</head>
<body>

	<input type="text" id="texto" />
	<input type="button" onclick="ws.send(document.getElementById('texto').value)" value="Enviar">
</body>
</html>